# -*- coding: utf-8 -*-

import  wx
import  os
import sys

from gettext import gettext as _

from features.UI.perspective import  baseview

class Stderr(baseview.BaseView):
    def __init__(self,parent):
        baseview.BaseView.__init__(self, parent)
        
        mt = wx.TextCtrl(self, -1,
             u"Stderr\n",
             style=wx.TE_MULTILINE)
        
        self.setDict("STDERR",mt.GetId())
        
        self.console = sys.stderr
        try:
            sys.stderr = mt
        except Exception, e:
            print e
        
        mt.SetInsertionPoint(1)   
